﻿@model ContactManagement.Models.ContactModel
@using Microsoft.Web.Helpers
@{
    ViewBag.Title = Resources.PageTitles.ContactFormularRESX;
}
<h2>
    @Resources.PageTitles.ContactFormularRESX</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>@Resources.HomeViews.FillContactFormularRESX</legend>
        <div class="view-item">
            <div class="editor-label">
                @Html.LabelFor(model => model.CompanyName)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.CompanyName)
                @Html.ValidationMessageFor(model => model.CompanyName)
            </div>
        </div>
        <div class="clear-all" />
        <div class="view-item">
            <div class="editor-label">
                @Html.LabelFor(model => model.Name)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Name)
                @Html.ValidationMessageFor(model => model.Name)
            </div>
        </div>
        <div class="clear-all" />
        <div class="view-item">
            <div class="editor-label">
                @Html.LabelFor(model => model.EMail)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.EMail)
                @Html.ValidationMessageFor(model => model.EMail)
            </div>
        </div>
        <div class="clear-all" />
        <div class="view-item">
            <div class="editor-label">
                @Html.LabelFor(model => model.Telephone)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Telephone)
                @Html.ValidationMessageFor(model => model.Telephone)
            </div>
        </div>
        <div class="clear-all" />
        <div class="view-item">
            <div class="editor-label">
                @Html.LabelFor(model => model.Message)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Message)
                @Html.ValidationMessageFor(model => model.Message)
            </div>
        </div>
        <div class="clear-all" />
        <div class="view-item">
         <div class="editor-label">
            </div>
            <div class="editor-field">
            @ReCaptcha.GetHtml()
            </div>
        </div>
        <div class="clear-all" />
        <p>
            <br />
            <input type="submit" value="@Resources.Navigation.SendFormularRESX" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink(Resources.Navigation.BackToStartpageRESX, EActionHome.Index.ToString())
</div>
